#pragma once
#include "buffer.h"
#ifndef ENCODE_H
#define ENCODE_H
typedef struct code {
public:
	virtual void encode(PTL_BUFFER buffer) = 0;
	virtual PTL_BUFFER decode() = 0;
	virtual inline BOOL is_binlog(DDWORD magic) {
		return (magic & 0xFE62696E) == 0x00000000 ? true : false;
	}
}ENCODE;
#endif // !ENCODE_H

